﻿using FluentValidation;
using Mes.Application.DTO.Inputs.WorkOrders;

namespace Mes.Application.Web.Validators.WorkOrders
{
    public class UpdateWoInputValidator : AbstractValidator<UpdateWoInput>
    {
        public UpdateWoInputValidator()
        {
            RuleFor(x => x.Start_Qty).GreaterThanOrEqualTo(0).WithMessage("开工数量必须大于0");
            RuleFor(x => x.Req_Qty).GreaterThanOrEqualTo(0).WithMessage("所需产量必须大于0");
        }
    }
}
